#include <iostream>
#include "CircleList.h"

using namespace std;

int main() {

	CircleList<int> test;
	test.insert(11);
	test.insert(12);
	test.insert(13);
	test.insert(14);
	test.show();
	test.del(13);
	test.show();
	ListIterator<int> iter(test);
	if (iter.NotNull()) {
		cout << *iter.first();
		while (iter.NextNotNull()){
			cout <<"->"<<*iter.next();
		}
		cout << endl;
	}
	system("pause");
	return 0;
}